//
//  DevicesCurrentTemperature-Platinum.m
//  iRMAP
//
//  Created by Ryan Enguero on 4/22/14.
//  Copyright (c) 2014 engueroryan. All rights reserved.
//

#import "DevicesCurrentTemperature-Platinum.h"

@implementation DevicesCurrentTemperature_Platinum

- (NSString*)freezerId{
    
    return self.freezerIdStr;
}

- (NSString*)uid{
    
    return self.uidStr;
}

- (NSString*)deviceName{
    
    return self.deviceNameStr;
}

- (NSString*)companyId{
    
    return self.companyIdStr;
}

- (NSString*)measureStatus{
    
    return self.measureStatusStr;
}

- (NSString*)measureName{
    
    return self.measureNameStr;
}

- (NSString*)measureDescription{
    
    return self.measureDescriptionStr;
}

- (NSString*)measureSeverity{
    
    return self.measureSeverityStr;
}

- (NSString*)healthStatusCode{
    
    return self.healthStatusCodeStr;
}

- (NSString*)healthStatusText{
    
    return self.healthStatusTextStr;
}

- (NSString*)healthStatusColor{
    
    return self.healthStatusColorStr;
}

- (NSString*)connectionState{
    
    return self.connectionStateStr;
}

- (NSString*)chamberTemperatureSensor{
    
    return _chamberTemperatureSensorStr;
}

- (NSString*)chamberSetPoint{
    
    return _chamberSetPointStr;
}

+ (DevicesCurrentTemperature_Platinum*)devicesWithFreezerID:(NSString*)freezerID andUID:(NSString*)uid andDeviceName:(NSString*)deviceName andCompanyId:(NSString*)companyID andMeasureStatus:(NSString*)measureStatus andMeasureName:(NSString*)measureName andMeasureDescription:(NSString*)measureDescription andMeasureSeverity:(NSString*)measureSeverity andHealthStatusCode:(NSString*)healthStatusCode andHealthStatusText:(NSString*)healthStatustext andHealthStatusColor:(NSString*)healthStatusColor andConnectionState:(NSString*)connectionState andChamberTemperatureSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andDeviceType:(NSString *)deviceType{
    
    DevicesCurrentTemperature_Platinum *devicesPlatinum = [DevicesCurrentTemperature_Platinum
                                                 devicesWithFreezerID:freezerID
                                                 andUID:uid
                                                 andDeviceName:deviceName
                                                 andCompanyId:companyID
                                                 andMeasureStatus:measureStatus
                                                 andMeasureName:measureName
                                                 andMeasureDescription:measureDescription
                                                 andMeasureSeverity:measureSeverity
                                                 andHealthStatusCode:healthStatusCode
                                                 andHealthStatusText:healthStatustext
                                                 andHealthStatusColor:healthStatusColor
                                                 andConnectionState:connectionState andDeviceType:deviceType];
    
    devicesPlatinum.chamberTemperatureSensorStr = chamberTemperatureSensor;
    devicesPlatinum.chamberSetPointStr = chamberSetPoint;
//    devicesPlatinum.deviceTypeStr = deviceType;
    
    
    return devicesPlatinum;
}

- (NSString*)occuranceTime{

    return _occuranceTimeStr;
}

- (NSString*)highTemperatureLimit{

    return _highTemperatureLimitStr;
}

- (NSString*)lowTemperatureLimit{

    return _lowTemperatureLimitStr;
}

- (NSString*)ambientSensor{

    return _ambientSensorStr;
}

- (NSString*)condenserOutletSensor{

    return _condenserOutletSensorStr;
}

- (NSString*)heatExchangerTempSensor{

    return _heatExchangerTempSensorStr;
}

- (NSString*)evapInSensor{
    
    return _evapInSensorStr;
}

- (NSString*)evapOutSensor{

    return _evapOutSensorStr;
}

- (NSString*)batteryVoltage{

    return _batteryVoltageStr;
}

- (NSString*)acVoltage{

    return _acVoltageStr;
}

- (NSString*)highStage{

    return _highStageStr;
}

- (NSString*)deviceType{

    return self.deviceTypeStr;
}

+ (DevicesCurrentTemperature_Platinum*)devicesType:(NSString*)deviceType andFreezerID:(NSString*)freezerID andChamberTemperatureSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andOccuranceTime:(NSString*)occuranceTime andHighTemperatureLimit:(NSString*)highTemperatureLimit andlowTemperatureLimit:(NSString*)lowTemperatureLimit andAmbientSensor:(NSString*)ambientSensor andCondenserOutletSensor:(NSString*)condenserOutletSensor andheatExchangerTempSensor:(NSString*)heatExchangerTempSensor andevapInSensor:(NSString*)evapInSensor andEvapOutSensor:(NSString*)evapOutSensor andBatteryVoltage:(NSString*)batteryVoltage andAcVoltage:(NSString*)acVoltage andHighStage:(NSString*)highStage{


    DevicesCurrentTemperature_Platinum *devicesPlat = [DevicesCurrentTemperature_Platinum devicesWithFreezerID:freezerID andDeviceType:deviceType];
    
    
    //devicesPlat.deviceTypeStr = deviceType;
    devicesPlat.freezerIdStr = freezerID;
    devicesPlat.chamberTemperatureSensorStr = chamberTemperatureSensor;
    devicesPlat.chamberSetPointStr = chamberSetPoint;
    devicesPlat.occuranceTimeStr = occuranceTime;
    devicesPlat.highTemperatureLimitStr = highTemperatureLimit;
    devicesPlat.lowTemperatureLimitStr = lowTemperatureLimit;
    devicesPlat.ambientSensorStr = ambientSensor;
    devicesPlat.condenserOutletSensorStr = condenserOutletSensor;
    devicesPlat.heatExchangerTempSensorStr = heatExchangerTempSensor;
    devicesPlat.evapInSensorStr = evapInSensor;
    devicesPlat.evapOutSensorStr = evapOutSensor;
    devicesPlat.batteryVoltageStr = batteryVoltage;
    devicesPlat.acVoltageStr = acVoltage;
    devicesPlat.highStageStr = highStage;
    
    return devicesPlat;

}


//
- (NSString*)occuranceTimeAlarm{
    
    return _occuranceTimeAlarmStr;
}
- (NSString*)alarmCodeAlarm{
    
    return _alarmCodeAlarmStr;
}

- (NSString*)alarmTextAlarm{
    
    return _alarmTextAlarmStr;
}

- (NSString*)measureStatusAlarm{
    
    return _measureStatusAlarmStr;
}

- (NSString*)measureNameAlarm{
    
    return _measureNameAlarmStr;
}

- (NSString*)measureDescriptionAlarm{
    
    return _measureDescriptionAlarmStr;
}

- (NSString*)measureSeverityAlarm{
    
    return _measureSeverityAlarmStr;
}

- (NSString*)cronStatusAlarm{
    
    return _cronStatusAlarmStr;
}

+ (DevicesCurrentTemperature_Platinum*)alarmDevicesType:(NSString*)deviceType andFreezerID:(NSString*)freezerID andFreezerName:(NSString*)freezerName andCompanyID:(NSString*)companyID andChamberTemperaturesSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andOccuranceTime:(NSString*)occuranceTime andAlarmCode:(NSString*)alarmCode andAlarmText:(NSString*)alarmText andMeasureStatus:(NSString*)measureStatus andMeasureName:(NSString*)measureName andMeasureDescription:(NSString*)measureDescription andMeasureSeverity:(NSString*)measureSeverity andCronStatus:(NSString*)cronStatus{
    
    DevicesCurrentTemperature_Platinum *devicePlatinum = [DevicesCurrentTemperature_Platinum
                                                alarmEventDevicesWithDeviceType:deviceType
                                                andFreezerID:freezerID
                                                andFreezerName:freezerName
                                                andCompanyID:companyID];
    
    
    devicePlatinum.occuranceTimeAlarmStr = occuranceTime;
    devicePlatinum.alarmCodeAlarmStr = alarmCode;
    devicePlatinum.alarmTextAlarmStr = alarmText;
    devicePlatinum.measureStatusAlarmStr = measureStatus;
    devicePlatinum.measureNameAlarmStr = measureName;
    devicePlatinum.measureDescriptionAlarmStr = measureDescription;
    devicePlatinum.measureSeverityAlarmStr = measureSeverity;
    devicePlatinum.cronStatusAlarmStr = cronStatus;
    
    return devicePlatinum;
}


- (NSString*)occuranceTimeEvent{
    
    return _occuranceTimeEventStr;
}

- (NSString*)eventCode{
    
    return _eventCodeStr;
}

+ (DevicesCurrentTemperature_Platinum*)eventDeviceType:(NSString*)deviceType andFreezerID:(NSString*)freezerID andFreezerName:(NSString*)freezerName andCompanyID:(NSString*)companyID andChamberTemperatureSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andOccuranceTime:(NSString*)occuranceTime andEventCode:(NSString*)eventCode{
    
    DevicesCurrentTemperature_Platinum *devicePlatinum = [DevicesCurrentTemperature_Platinum
                                                alarmEventDevicesWithDeviceType:deviceType
                                                andFreezerID:freezerID
                                                andFreezerName:freezerName
                                                andCompanyID:companyID];
    
    
    devicePlatinum.occuranceTimeEventStr = occuranceTime;
    devicePlatinum.eventCodeStr = eventCode;
    
    return devicePlatinum;
    
}

@end
